FROM openjdk:8-jdk-alpine
MAINTAINER didi
EXPOSE 12000
VOLUME ["/gulimall-search"]
COPY ./target/gulimall_search.jar gulimall_search.jar
ENV TZ=Asia/Shanghai
RUN sh -c 'touch /gulimall_search.jar' && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENTRYPOINT ["java","-jar","/gulimall_search.jar", "&"]